package com.thingsgrid.device.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 功能说明：设备维护记录实体
 *
 * @author 李龙飞
 * @since 2019/9/5 19:56
 */
@Data
@Document(collection = "device_maintenance_record")
public class DeviceMaintenanceRecord {

	public DeviceMaintenanceRecord() {
	}

	public DeviceMaintenanceRecord(String configRecordId, String configType, String configDeviceId, String configAuthor, String createTime,String productId) {
		this.configRecordId = configRecordId;
		this.configType = configType;
		this.configDeviceId = configDeviceId;
		this.configAuthor = configAuthor;
		this.createTime = createTime;
		this.productId = productId;
	}

	@Field("_id")
	private String configRecordId;

	@Field("config_type")
	private String configType;

	@Field("config_device_id")
	private String configDeviceId;

	@Field("config_author")
	private String configAuthor;

	@Field("create_time")
	private String createTime;

	@Field("product_id")
	private String productId;

}
